import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

//路由组件
import AppRoute from '@/views/App/route'
import LoginRoute from '@/views/logins/route'
import searchRoute from '@/views/search/route'
import goodRoute from '@/views/good/route'


const routes = [
  {
    path:"/",
    redirect:{name:"shop"}
  },
  ...searchRoute,
  ...AppRoute,
  ...LoginRoute,
  ...goodRoute
]

const router = new VueRouter({
  mode: 'hash',
  base: "",
  routes
})

export default router
